package com.ws.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Scanner;

/**
* @author 王硕
* @className User
* @description 
* @date 2024/11/7 16:39
* @version jdk21
*/
@Data
@Accessors(chain = true)
public class User {

    private int useroutput;


    public void show(){
        System.out.println("请你出拳:");
        Scanner scanner = new Scanner(System.in);
        this.useroutput=scanner.nextInt();

        switch (this.useroutput) {
            case 1:
                System.out.println("你出的是剪刀");
                break;
            case 2:
                System.out.println("你出的是石头");
                break;
            case 3:
                System.out.println("你出的是布");
                break;
        }
    }
}
